package com.mobclick.android;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;

class i extends Thread
{
  public void run()
  {
    SharedPreferences localSharedPreferences = MobclickAgent.b(this.a);
    long l1 = localSharedPreferences.getLong("umeng_last_update_time", 0L);
    long l2 = localSharedPreferences.getLong("umeng_update_internal", this.b);
    long l3 = System.currentTimeMillis();
    if (l3 - l1 > l2)
    {
      MobclickAgent.update(this.a);
      localSharedPreferences.edit().putLong("umeng_last_update_time", l3).commit();
    }
  }
}